import 'package:url_launcher/url_launcher.dart';

class UrlOpen {
  static Future<void> openEulaUrl() async {
    const eulaUrl =
        'https://www.freeprivacypolicy.com/live/789cc00f-ff18-4276-8aaf-531d2c7b9312';
    final uri = Uri.parse(eulaUrl);
    if (await canLaunchUrl(uri)) {
      await launchUrl(uri, mode: LaunchMode.externalApplication);
    }
  }

  static Future<void> openServiceUrl() async {
    const serviceUrl =
        'https://www.freeprivacypolicy.com/live/06e2c62c-ace8-4c9c-bc2b-55560b9594b9';
    final uri = Uri.parse(serviceUrl);
    if (await canLaunchUrl(uri)) {
      await launchUrl(uri, mode: LaunchMode.externalApplication);
    }
  }

  static Future<void> openPrivacyUrl() async {
    const privacyUrl =
        'https://www.freeprivacypolicy.com/live/c62fb23f-2b07-415c-8839-e067fec77207';
    final uri = Uri.parse(privacyUrl);
    if (await canLaunchUrl(uri)) {
      await launchUrl(uri, mode: LaunchMode.externalApplication);
    }
  }
}
